package router

import (
	"ruoyi-go-echo-ddd/internal/infrastructure/http/handler"

	"github.com/labstack/echo/v4"
)

// NewUploadRouter 上传路由初始化
func NewUploadRouter(group *echo.Group, upload *handler.UploadHandler) {
	uploadRouter := group.Group("/file/upload")
	uploadRouter.GET("/init", upload.ChunkUploadInit)
	uploadRouter.POST("/init", upload.ChunkUploadInit)
	uploadRouter.POST("/chunk", upload.ChunkUpload)
	uploadRouter.GET("/merge", upload.ChunkUploadMerge)
	uploadRouter.POST("/merge", upload.ChunkUploadMerge)
}
